package me.banxi.ilearnandroid.demo;

import me.banxi.ilearnandroid.demo.app.AppDemoActivity;
import me.banxi.ilearnandroid.demo.touch.TouchDemoActivity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends Activity {

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
	}

	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.app_demo:
			startActivity(new Intent(this, AppDemoActivity.class));
			break;
		case R.id.touch_demo:
			startActivity(new Intent(this, TouchDemoActivity.class));
			break;
		default:
			break;
		}
	}
}